package jp.kiroru_inc.rs_sample;

import android.app.Activity;
import android.os.Bundle;

/**
 * RS のサンプルアプリです。<br/>
 * <br/>
 * <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">
 * <img alt="クリエイティブ・コモンズ・ライセンス" style="border-width:0" src="http://i.creativecommons.org/l/by-nc-sa/3.0/88x31.png" />
 * </a><br/>
 * <span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">RSSample</span> by 
 * <a xmlns:cc="http://creativecommons.org/ns#" href="http://sakplus.jp/" property="cc:attributionName" rel="cc:attributionURL">
 * Selphy, Kiroru Inc.
 * </a>
 *  is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons 表示 - 非営利 - 継承 3.0 非移植 License
 * </a>.
 * @author selphy
 */
public class MainActivity extends Activity {
	private MainTextureView texture;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        texture = (MainTextureView) findViewById(R.id.texture);
    }

    @Override
    protected void onResume() {
    	super.onResume();
    	if (texture != null)
    		texture.resume();
    }
    
	@Override
	protected void onPause() {
		super.onPause();
		if (texture != null)
			texture.pause();
	}
}